
package com.avocado.base.dto.role;


import com.avocado.base.validator.role.RoleAddCodeValidation;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
@EqualsAndHashCode(callSuper = true)
@Data
public class RoleAddDto extends RoleDto{

	@NotBlank(message = "操作失败,代码不能为空!")
	@NotNull(message ="操作失败,代码不能为空!")
	@RoleAddCodeValidation
	private String code;
	


}
